]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell-app: Only raise windows on the same workspace when activating them
authorJasper St. Pierre <jstpierre@mecheye.net>
Fri, 30 Jan 2015 16:35:46 +0000 (11:35 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Fri, 30 Jan 2015 16:36:45 +0000 (11:36 -0500)
For some reason, we never did this, even though this is what the comment
says we should be doing.

src/shell-app.c

index 94b295171c59940ed97ff6d8d11cf7760fee5c05..60be10042f64bcdf2dee7d4f2f8ba0d11856c8c6 100644 (file)
@@ -582,7 +582,7 @@ shell_app_activate_window (ShellApp     *app,
         {
           MetaWindow *other_window = iter->data;
 
-          if (other_window != window)
+          if (other_window != window && meta_window_get_workspace (other_window) == workspace)
             meta_window_raise (other_window);
         }
       g_slist_free (windows_reversed);